/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.ismaila.designPatterns.creational.prototype;

/**
 *
 * @author Chelsea
 */
public class Person implements Prototype {
String name;
public Person(String name){
this.name=name;
}

@Override
public Prototype doClone(){
return new Person(name);
}
public String toString(){
return "Thispersonisnamed"+name;
}

}
